<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>检查检验结果</title>
	<%- include('../_global/baseLibsJKDA') %>
			<link rel="stylesheet" href="/static/css/jkda/page-main.css" />
			<script src="/static/js/<%=type%>/pageUrl.js"></script>
			<script src="/static/js/<%=type%>/jkda.js"></script>

			<style type="text/css">
				html,
				body {
					width: 100%;
					height: 100%;
					margin: 0px;
				}

				tr td {
					padding: 1.71429rem 0.71429rem;
					font-size: 0.85714rem;
					color: #7a7a7a;
					word-break: break-all;
					text-align: center;
				}
			</style>


			<script type="text/javascript">
				var page_jcDetail = (function ($, page_jcDetail) {

					var cfg_def = {
						indata: indata,
						callBack: callBack,
					}

					page_jcDetail.init = function (cfg) {
						$.extend(page_jcDetail, cfg_def, cfg);
						page_jcDetail.indata();

					}

					function indata() {
						var result = StoreCache.getCache("searchContent");
						page_jcDetail.callBack(result);
					}

					function callBack(result) {

						var bgzys = result.split("^|^");
						var max = bgzys.length - 1;
						if (bgzys[max] == "jc") {
							var trs = [];
							var tr1 = $("<tr>");
							var td1 = $("<td>");
							td1.attr("class", "col-first text-title");
							td1.html("检查项目");
							td1.appendTo(tr1);
							var td2 = $("<td>");
							td2.attr("class", "col-last");
							td2.html(bgzys[2] + "-" + bgzys[6]);
							td2.appendTo(tr1);
							trs.push(tr1);

							var tr2 = $("<tr>");
							var td3 = $("<td>");
							td3.attr("class", "col-first text-title");
							td3.html("检查所见");
							td3.appendTo(tr2);
							var td4 = $("<td>");
							td4.html(bgzys[4]);
							td4.appendTo(tr2);
							trs.push(tr2);

							var tr3 = $("<tr>");
							var td5 = $("<td>");
							td5.attr("class", "col-first text-title");
							td5.html("检查提示");
							td5.appendTo(tr3);
							var td6 = $("<td>");
							td6.html(bgzys[5]);
							td6.appendTo(tr3);
							trs.push(tr3);
						} else if (bgzys[max] == "jy") {
							var trs = [];
							var tr1 = $("<tr>");
							var td1 = $("<td>");
							td1.attr("class", "col-average text-title");
							td1.html("检验指标项目");
							td1.appendTo(tr1);
							var td2 = $("<td>");
							td2.attr("class", "col-average text-title");
							td2.html("检验指标结果");
							td2.appendTo(tr1);
							var td3 = $("<td>");
							td3.attr("class", "col-average text-title");
							td3.html("参考值范围");
							td3.appendTo(tr1);
							var td4 = $("<td>");
							td4.attr("class", "col-average text-title");
							td4.html("异常");
							td4.appendTo(tr1);
							trs.push(tr1);
							var jyjg = result.split("&|&");
							for (var i = 1; i < jyjg.length - 1; i++) {
								var jyjgs = jyjg[i].split("^|^");
								var tr2 = $("<tr>");
								var xmtd = $("<td>");
								xmtd.html(jyjgs[0]);
								xmtd.appendTo(tr2);
								var jgtd = $("<td>");
								jgtd.html(jyjgs[1]);
								jgtd.appendTo(tr2);
								var cktd = $("<td>");
								cktd.html(jyjgs[2]);
								cktd.appendTo(tr2);
								var yctd = $("<td>");
								yctd.html(jyjgs[3]);
								yctd.appendTo(tr2);
								trs.push(tr2);
							}
						}

						$("#detailTable").append(trs);
					}
					
					return page_jcDetail;

				})(jQuery, {});
			</script>
</head>

<body>
	<section class="page-inspect-detail">

		<header class="header-box grey fixed">
			<div class="header-content">
				<div class="left-tool">
					<a class="back" href="javascript:void(0);">
						<i class="iconfont icon-back"></i>
					</a>
				</div>
				<div class="title">检查检验结果</div>
			</div>
		</header>
		<!--aside class="inspect-detail-title">
       <span class="time">2010-01-31</span><span class="hospital">市中心医院</span><span class="name">任柳奎</span>
   </aside-->
		<table class="table-list" style="width:100%">
			<tbody id="detailTable">

			</tbody>
		</table>
	</section>

</body>

</html>